package com.gitee.l0km.casban;

import static com.gitee.l0km.com4j.basex.annotations.ActiveOnClassSupport.isActive;

import com.gitee.l0km.com4j.base.Platform;

public class PackageScanners {
	public static final PackageScanner PACKAGE_SCANNER;
	static {
		if(Platform.isAndroid()) {
			PACKAGE_SCANNER = AndroidPackageScanner.ANDROID_PACKAGE_SCANNER;
		}else if(isActive(SpringResourceScanner.class)) {
			PACKAGE_SCANNER =  SpringResourceScanner.SPRING_PACKAGE_SCANNER;
		}else {
			PACKAGE_SCANNER =  PackageScanner.JDK_PACKAGE_SCANNER;
		}
	}
}
